package com.sjq.project.service;

import java.util.Map;
import net.sf.json.JSONObject;
import com.sjq.common.entity.LoginAccount;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import com.sjq.project.entity.ProjectFlow;
import com.sjq.common.exception.ServiceException;
import com.sjq.common.util.PageResults;
import com.sjq.common.entity.Result;

public interface ProjectFlowService {
	//新增
	public JSONObject addFlow(ProjectFlow flow,LoginAccount la);
	//新增含有附件的页面
	public JSONObject addFlowFilesByFTP(ProjectFlow flow,CommonsMultipartFile[]  fj,LoginAccount la);
	//删除
	public JSONObject deleteFlow(String flowId,LoginAccount la);
	//修改
	public JSONObject updateFlow(ProjectFlow flow,LoginAccount la);
	// 分页查询
	public PageResults<?> findFlowByPage(int pageNo, int pageSize, ProjectFlow flow);
	
	//根据条件查询所有记录
	public JSONObject findFlowByListAll(ProjectFlow flow,LoginAccount la);
	
}